package com.saleSystem.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.saleSystem.pojo.TradeHistory;

public interface TradeHistoryMapper {
    int deleteByPrimaryKey(Integer id);

	int insert(TradeHistory record);

	int insertSelective(TradeHistory record);

	TradeHistory selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(TradeHistory record);

	int updateByPrimaryKey(TradeHistory record);

    List<TradeHistory> selectByUserIdAndContentId(@Param("userid")Integer userid,@Param("contentid")Integer contentid);
    
    List<TradeHistory> selectByContentId(Integer contentid);
    
    List<TradeHistory> selectByUserId(Integer userid);
    
    void batchInsert(@Param("tradeHistoryList") List<TradeHistory> tradeHistoryList);
    
}